package de.distMLP.evaluation;

public class ClassificationResult implements Comparable<ClassificationResult> {

	private final int nbOutputNeuron;
	private final double outputValue;

	public ClassificationResult(final int nbOutputNeuron, final double outputValue) {
		super();
		this.nbOutputNeuron = nbOutputNeuron;
		this.outputValue = outputValue;
	}

	public int getNbOutputNeuron() {
		return this.nbOutputNeuron;
	}

	public double getOutputValue() {
		return this.outputValue;
	}

	@Override
	public int compareTo(final ClassificationResult other) {
		if (other.getOutputValue() > this.outputValue) {
			return -1;
		} else if (other.getOutputValue() < this.outputValue) {
			return 1;
		}
		return 0;
	}
}
